package com.An.dao;

import com.An.pojo.AdminUser;
import com.An.pojo.Student;
import com.An.pojo.StudentUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @auther AnYang
 * @date 2022/3/24 21:10
 **/
@Mapper
public interface LoginDao extends BaseMapper<StudentUser> {
	//根据学号获取user
	StudentUser getUserBySno(Integer sno);

	//根据账号获取user
	StudentUser getUserByUserId(String userid);

	//获得学生信息
	Student getStudentBySno(Integer sno);

	boolean updateBySno(@Param("user") StudentUser user);

	AdminUser getAdminUserById(Integer id);

	AdminUser getAdminUserByUsername(String username);

	//


}